﻿using System;

namespace Rimifier.Support.ResourceManager
{
  public class Resource{
    
    public String Def { get; set; }

    public String Id { get; set; }

    public String Pos { get; set; }

    public Int32 Health { get; set; }

    public Int32 StackCount { get; set; }

    public ResourceType ResourceType{ get; set; }
    
    private Int32 GenerateId(Int32 minimum, Int32 maximum)
    {
      return RandomHelper.Instance.Next(minimum, maximum);
    }

    public static Resource CreateDefaultResource(ResourceType resourceType)
    {
      return new Resource
             {
               Def = resourceType.Name,
               StackCount = 0,
               ResourceType = resourceType
             };
    }

    public override String ToString(){
      return ResourceType.Name;
    }

  }

}